package cn.iocoder.yudao.module.design.convert.probleminnerrel;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.probleminnerrel.vo.ProblemInnerRelCreateReqVO;
import cn.iocoder.yudao.module.design.controller.admin.probleminnerrel.vo.ProblemInnerRelExcelVO;
import cn.iocoder.yudao.module.design.controller.admin.probleminnerrel.vo.ProblemInnerRelRespVO;
import cn.iocoder.yudao.module.design.controller.admin.probleminnerrel.vo.ProblemInnerRelUpdateReqVO;
import cn.iocoder.yudao.module.design.dal.dataobject.probleminnerrel.ProblemInnerRelDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 问题间关联 Convert
 *
 * @author czw
 */
@Mapper
public interface ProblemInnerRelConvert {

    ProblemInnerRelConvert INSTANCE = Mappers.getMapper(ProblemInnerRelConvert.class);

    ProblemInnerRelDO convert(ProblemInnerRelCreateReqVO bean);

    ProblemInnerRelDO convert(ProblemInnerRelUpdateReqVO bean);

    ProblemInnerRelRespVO convert(ProblemInnerRelDO bean);

    List<ProblemInnerRelRespVO> convertList(List<ProblemInnerRelDO> list);

    PageResult<ProblemInnerRelRespVO> convertPage(PageResult<ProblemInnerRelDO> page);

    List<ProblemInnerRelExcelVO> convertList02(List<ProblemInnerRelDO> list);

}
